import NatureHistogram from '@/components/chart/item/ItemNatureHistogram'
import NaturePie from '@/components/chart/item/ItemNaturePie'
import RegionHistogram from '@/components/chart/item/ItemRegionHistogram'
import RegionProvincePie from '@/components/chart/item/ItemRegionProvincePie'
import RegionCityPie from '@/components/chart/item/ItemRegionCityPie'
import ChannelTypeBar from '@/components/chart/channel/ChannelTypeBar'
import ChannelTypePie from '@/components/chart/channel/ChannelTypePie'

const routers = [
  {path: 'item-nature/histograms', component: NatureHistogram},
  {path: 'item-nature/pies', component: NaturePie},
  {path: 'item-region/histograms', component: RegionHistogram},
  {path: 'item-region/province/pies', component: RegionProvincePie},
  {path: 'item-region/city/pies', component: RegionCityPie},
  {path: 'channel/type/bar', component: ChannelTypeBar},
  {path: 'channel/type/pie', component: ChannelTypePie}
]

const menu = {
  title: '项目分析',
  icon: 'th-large',
  flag: false,
  sons: [
    {
      title: '词性柱状图',
      icon: 'bar-chart',
      path: '/chart/item-nature/histograms',
      perm: 'analysisItemKeyword:itemNatureHistogramChart',
      flag: false
    },
    {
      title: '词性占比图',
      icon: 'pie-chart',
      path: '/chart/item-nature/pies',
      perm: 'analysisItemKeyword:itemNatureChart',
      flag: false
    },
    {
      title: '地域柱状图',
      icon: 'bar-chart',
      path: '/chart/item-region/histograms',
      perm: 'analysisItemRegion:itemRegionHistogramChart',
      flag: false
    },
    {
      title: '省份占比图',
      icon: 'pie-chart',
      path: '/chart/item-region/province/pies',
      perm: 'analysisItemRegion:itemRegionCostCoin',
      flag: false
    },
    {
      title: '城市占比图',
      icon: 'pie-chart',
      path: '/chart/item-region/city/pies',
      perm: 'analysisItemRegion:itemRegionChart',
      flag: false
    },
    {
      title: '渠道类型柱状图',
      icon: 'bar-chart',
      path: '/chart/channel/type/bar',
      perm: 'itemChannelTypeEffects:bar',
      flag: false
    },
    {
      title: '渠道类型占比图',
      icon: 'pie-chart',
      path: '/chart/channel/type/pie',
      perm: 'itemChannelTypeEffects:pie',
      flag: false
    }
  ]
}

export default {
  routers,
  menu
}
